package com.yizhang.xml.factory;

import com.yizhang.xml.dao.UserDao;
import com.yizhang.xml.dao.impl.UserDaoImpl;

public class MyBeanFactory2 {

    /**
     * 普通工厂
     * @param name
     * @return
     */
    public UserDao userDao(String name) {
        return new UserDaoImpl();
    }
}
